package com.etc.service;

import com.etc.dao.UserDao;
import com.etc.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService2  {


    @Autowired
    private UserDao userDao;


    /**
     * 根据id查询
     * @param id
     * @return
     */
    public User findbyid(Integer id){
        User findbyid = userDao.findbyid(id);
        return findbyid;
    }

}
